package com.ms.p2p.dao;



import com.ms.p2p.entity.loan.LoanStay;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;


public interface LoanRepayDao extends CrudDao<LoanStay> {


    LoanStay getNewxOrderByBorrowId(@Param("borrowId") int borrow_id);

    List<Map<String, Object>> findPager(@Param("userId") String userId, @Param("userName") String userName,
                                        @Param("borrowId") String borrowId, @Param("status") String status,
                                        @Param("borrowName") String borrowName, @Param("begin_date") String begin_date,
                                        @Param("end_date") String end_date, @Param("begin") int begin,
                                        @Param("size") Integer pageSize);

    int findCount(@Param("userId") String userId, @Param("userName") String userName,
                  @Param("borrowId") String borrowId, @Param("status") String status,
                  @Param("borrowName") String borrowName,
                  @Param("begin_date") String begin_date, @Param("end_date") String end_date);

    List<LoanStay> findList(@Param("loanId") Integer loanid);
}